﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace XLDL
{
    public partial class upload : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          //  if(di
          //  this.Load+= new System.EventHandler(this.them);
          //  FileUpload1.

            this.Label1.Text = "jasdhjadshjahdsjahsjdhajdhjadhjadhjashdjadshjkhdsjkhdsajkhsjdkhasjhdajhdjkashdjkahdjkashdkjadshjkahdsjhasdjkhasdkjashdjkhadsjkashdjkashdjhadsjkadshjkhdsajkhasdjhdsajhdsajkhadsjkdshjasdhjaksdhjaskdhjadshjkdsahjkadsh";

        }
        override protected void OnInit(EventArgs e)
        {
           
            InitializeComponent();
            base.OnInit(e);
        }
        private void InitializeComponent()
        {
            //this.RemvFile.Click += new System.EventHandler(this.RemvFile_Click);
            //this.AddFile.Click += new System.EventHandler(this.AddFile_Click);
            //this.Upload.ServerClick += new System.EventHandler(this.Upload_ServerClick);
            //this.Load += new System.EventHandler(this.Page_Load);
         //   this.FileUpload1.Unload+= new System.EventHandler(this.them);

        }

        protected void them(object sender, System.EventArgs e)
        {
           
            //ListBox1.Items.Add(FileUpload1.PostedFile.FileName);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            //HttpFileCollection hfc = Request.Files;
            //for (int i = 0; i < hfc.Count; i++)
            //{
            //    HttpPostedFile hpf = hfc[i];
            //    if (hpf.ContentLength > 0)
            //    {
            //        hpf.SaveAs("F:\\xxx" + "\\" + Path.GetFileName(hpf.FileName));
            //    }
            //}
        }
    }
}
